package sy.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import sy.pageModel.DataGrid;
import sy.pageModel.Record;
import sy.service.RecordServiceI;

import java.util.List;

/**
 * Created by Administrator on 2016-07-12.
 */
@Controller
@RequestMapping("recordController")
public class RecordController {

    @Autowired
    private RecordServiceI recordService;
    @RequestMapping("/datagrid.action")
    @ResponseBody
    public DataGrid findPicAction(Record record){
        return recordService.findRecordDataGird(record);
    }

    @RequestMapping("/find_name.action")
    @ResponseBody
    public List findNameList(){
        return recordService.findNameList();
    }
}
